package edu.nf.relaxenjoy.domain.dto;

import edu.nf.relaxenjoy.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author zhu
 * @date 2024-12-19
 */
@Data
@ApiModel(value = "标签")
public class TagDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标签名称")
    @NotBlank(message = "名称不能为空", groups = DefaultGroup.class)
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;
}
